#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    // 获取多行输入框里面的内容
}

Widget::~Widget()
{
    delete ui;
}



void Widget::on_textEdit_textChanged()
{
    // 获取TextEdit的内容
    const QString& s = ui->textEdit->toPlainText();
    ui->label->setText(s);
}
